import axios from "axios";
export function requestUp(config) {
  //创建axios实例
  const newAxios = axios.create({
    baseURL:
      process.env.NODE_ENV === "production"
        ? "http://129.204.116.243:21021"
        : "http://129.204.116.243:21021",
    headers: {
      "Content-Type": "multipart/form-data;boundary=ebf9f03029db4c2799ae16b5428b06bd1",
      "Abp.TenantId": 1,
      "Abp-TenantId": 1,
      Authorization: localStorage.getItem("Authorization"),
    },
    withCredentials: false,
    timeout: 10000,
  });
  return newAxios(config)
}